strongswan: swanctl: make send_cert local
authorKevin Locke <[email protected]>
Sat, 30 Nov 2024 21:23:08 +0000 (14:23 -0700)
committerPhilip Prindeville <[email protected]>
Sun, 27 Apr 2025 19:40:39 +0000 (13:40 -0600)
When support for send_cert was added in 4b9453b9a4, the $send_cert
variable was inadvertently global.  Make it local to avoid polluting the
global namespace and make the code easier to reason about.

Fixes: 4b9453b9a4c8 ("strongswan: Add support for send_cert option")
Signed-off-by: Kevin Locke <[email protected]>
net/strongswan/files/swanctl.init

index f48b3bb3bd110ef7bcfc4807dd0ad5a817ee5a02..637e146f69354bbbf6a7f72dfd032653974f6926 100644 (file)
@@ -459,6 +459,7 @@ config_remote() {
        local local_key
        local ca_cert
        local rekeytime
+       local send_cert
        local remote_ca_certs
        local pools
        local eap_id